home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / mg2a_src.zip / SYS / AMIGA / SLEEP.C < prev    next >
C/C++ Source or Header  |  1988-08-23  |  412b  |  23 lines

  1. /*
  2.  * Name:    MicroEmacs
  3.  *        AmigaDOS sleep function
  4.  * Version:    31
  5.  * Last Edit:    18-Apr-86
  6.  * Created:    18-Apr-86 ...!ihnp4!seismo!ut-sally!ut-ngp!mic
  7.  */
  8.  
  9. /* There are really 60 ticks/second, but I don't want to wait that     */
  10. /* long when matching parentheses... */
  11. #define    TICKS    45
  12. extern    long Delay();
  13.  
  14. #ifdef    LATTICE
  15. void
  16. #endif
  17. sleep(n)
  18. int n;
  19. {
  20.     if (n > 0)
  21.         Delay((long) n * TICKS);
  22. }
  23.